package com.fei.test;

import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import http.HttpClientUtil;

public class DeleteProduct {
    public static void main(String[] args) throws Exception {
        String url = "http://192.168.1.196/adapter/cooperator/product/deleteProduct.json";

        BufferedReader reader = new BufferedReader(new FileReader("F://my//maven-test//src\\main\\java\\com\\fei\\test\\s.txt"));
        String line = null;
        List<String> l = new ArrayList<String>();
        StringBuilder sb = new StringBuilder();
        while ((line = reader.readLine()) != null) {
            Map<String, String> param = new HashMap<String, String>();
            param.put("productId", line);
            param.put("operatorId", "1");

            HttpClientUtil.executePost(url, param);
        }


        System.out.println("执行完成");

    }
}
